package puf3

import chisel3._
import chisel3.util._
import chisel3.experimental._

import puf3._ 
import puf3.PUF_Constants._

class Clk_Divider extends Module{
    val io = IO(new Bundle{
        val clk_out =   Output(Clock())
    })
    val the_clk =   RegInit(false.B)
    the_clk     :=  ~the_clk

    io.clk_out  :=  the_clk.asClock

}

object Clk_Divider {
    def apply(): Clock = {
        val M_Clk_Divider = Module(new Clk_Divider)
        
        M_Clk_Divider.io.clk_out
    }
}

